<div id="middleholder">
<form name="searchForm" action="<?php echo $html->url('/search/result'); ?>", method="post">
<div id="spacer"><?=$html->image('ldsyellow/spacer1x1.gif', array('height' => '80', 'alt' => ''))?></div>  
<div id="homebox">
    <div id="boxleft">
        <div id="boxtitle"><h1>search</h1></div>
        <div id="boxcontent">
            <input type="text" name="data[search][searchfield]" style="width: 97%" onkeydown="javascript: hitenter()">
            </p>
			<p style="font-size: 12px;">Enter Business Name or keyword to search</p>
            <p>&nbsp;</p>
            <p>
            <input type="text" name="data[search][extras]" style="width: 97%" onkeydown="javascript: hitenter()">
			<p style="font-size: 12px;">Enter the search location</p>
			<p style="font-size: 12px; color: #666569">(Houston, TX)(TX)(Texas) or zip (84604)</p>
            <p>&nbsp;</p>
            <p>To see all listings in an area leave the keyword box empty, to search a certain category nationwide leave the location 
               box empty and to see all search results nationwide enter only a comma (,) in the keyword box.</p>
            <p>&nbsp;</p>
            <p>&nbsp;</p>
            <p align="center">
              <a href="javascript: document.getElementById('flag').value='search'; document.searchForm.submit();">
              <?=$html->image('ldsyellow/btn-search.gif', array('height' => 26, 'border' => 0))?>
              </a>
            </p>
            <p>&nbsp;</p>            
            <p>&nbsp;</p>            
            <p>&nbsp;</p>
            <?=$form->hidden('window/flag', array('id' => 'flag'))?> 
            <?=$form->hidden('window/switch', array('id' => 'switch'))?> 
        </div>
        <div id="boxbottom"></div>
    </div>
    <div id="boxright">
        <div id="boxtop"></div>
        <div id="boxcontent">
            <?=$html->image('ldsyellow/home_ani.gif', array('height' => 248, 'border' => 0))?>
        </div>
        <div id="boxbottom"></div>
    </div>
</div>
<div id="spacer"><?=$html->image('ldsyellow/spacer1x1.gif', array('height' => '80', 'alt' => ''))?></div>
</form>
</div>    
<script language="javascript">
function hitenter()
{
    if (event.keyCode == 13) {
        document.getElementById('flag').value='search'
        document.getElementById('switch').value=1
        document.searchForm.submit();
    }
}
</script>
